Open the user highlighter dialog by selecting Settings menu > User Highlighter.
Highlighter definition
- Load highlighter definition for folder .\PSPad\Syntax.
- Fill Name.
- Fill File Types, Comma Delimited. Comma delimited extension list of file types (*.bat, *.log, ...)
- Select Comment Style. Specification of comment styles used in your language. You can combine several styles together.
- Choose string identifiers of double and/or single quotes.
- Check Preprocessors. Contains special parts of code, usually compiler directives, usually proceeded with a # symbol.
- Fill word word list.
- Fill word word list.
- Save highlighter definition. User highlighter's are saved in the .\PSPad\Syntax folder.
How to tell PSPad to use new highlighter
- Select Settings menu > Highlighter settings.
- Select Specification tab.
- On the left (highlighter) list, click on one of three bolded highlighters.
- On the right side is list of user highlighters, select the one you created and click on it.
Color settings for highlighter
If you need change the font and colors for highlighter attributes, go to tab
"Colors" and set the colors and font styles you want. If active document
corresponds with highlighter you are modifying, you will immediately see the
changes you make. (See Working with Color)
; Comments, are ignored
; Bold in brackets are section name
[Settings]
; File name
Name=OtherCad
; List of file extension
FileType=*.prg,*.bpk
; Comments settings (optional) 1 = Yes, 0 = No
ANSIComment=0
PasComment=0
CComment=0
SpecComment=1
BasComment=0
SingleQuote=0
Preprocessors=0
....
; List of keywords and reserved words
; Include the = sign at the end of each word.
[KeyWords]
ABS=
ACOS=
ATN=
BOOLEAN=
[ReservedWords]
BOOLEAN=
INTEGER=
STRING=